﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace EmailClient.UserControls
{
    /// <summary>
    /// Interaction logic for TypeMailServer.xaml
    /// </summary>
    public partial class TypeMailServer : UserControl
    {
        public string ServerType
        {
            get { return cbType.Text; }
            set { cbType.Text = value; }
        }

        public bool UseSSL
        {
            get { return (bool)chUseSSL.IsChecked; }
            set { chUseSSL.IsChecked = value; }
        }        
        
        public TypeMailServer()
        {
            InitializeComponent();
        }

        public event RoutedEventHandler cbType_Change;
        
        private void cbType_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if (cbType_Change != null) cbType_Change(sender, e);
        }
    }
}
